libostree: Add g_autoptr() support for the public types
authorKrzesimir Nowak <krzesimir@kinvolk.io>
Thu, 12 May 2016 12:42:26 +0000 (14:42 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 17 May 2016 21:13:19 +0000 (21:13 +0000)
commit51e4e3b3647daf702cfcc06438163b34e6879ae3
tree6c8bfd4a2347f1b880536cf03e91aa41c36eba31
parent441c03ba9ee86d025c7db38c05d22b8ad41d1459
libostree: Add g_autoptr() support for the public types

To avoid breaking the ostree users we hide the autoptr setup behind an
OSTREE_WITH_AUTOCLEANUPS variable. The variable is set to 0 by
default, so users that want to start using them, have to define the
variable themselves to 1.

Probably after some transition period, the variable will be set 1 by
default.

This is conditional on GLib >= 2.44.0 being available. It does not
bump ostree's dependency on GLib.

Closes: #295
Approved by: cgwalters
Makefile-libostree.am
src/libostree/ostree-autocleanups.h [new file with mode: 0644]
src/libostree/ostree.h